package A;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

public class aa implements HttpSessionBindingListener {
    private String username;
    private String password;
    private String usercode;

    public aa() {
    }

    public aa(String username, String password, String usercode) {
        this.username = username;
        this.password = password;
        this.usercode = usercode;
    }


    public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {
        System.out.println("绑定数据");
    }

    public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent) {
        System.out.println("解绑数据");
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return usercode
     */
    public String getUsercode() {
        return usercode;
    }

    /**
     * 设置
     * @param usercode
     */
    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String toString() {
        return "aa{username = " + username + ", password = " + password + ", usercode = " + usercode + "}";
    }
}
